﻿jQuery(function($){
		/*修改内容图片尺寸*/
		$('.adArea').html('<div id="zxadArea"> </div>  <div id="zxw_indexad"><a href="../../../../../idigger.allyes.com/main/c@db=idigger_2Fbid=53869,25967,1_2Fcid=23875,18697,1342_2Fsid=53007_2Fshow=ignore_2Furl=http_3A_2F_2Fwap.buick.com.cn"> <img src="../../../../images/index_ad.jpg"> </a></div> ');
		//$('.video a img').before('<img style="height: 50px;margin: 0;width: 50px;" class="imgbf" src="../../../../images/play_content.png">');
  	$('.gotoTOP').bind('click', function(){
		window.scrollTo(0, 0);
	});
	/*
	$.get('../../../../iphone/new_index/ad/index_adv/indexadvtop/index.xml', function(data){
			var strHtml = '';
			$(data).find('addoc').each(function(i){
			var name = $(this).find('name').text();
			var apic = $(this).find('apic').text();
			var ico  = $(this).find('ico').text();
			
			if (ico.substring(1,ico.length)=="")
			{
			strHtml += " <p> \n" + name.substring(1,name.length) + "\n </p> \n";
			}
			else
			{
			strHtml += " <p> \n" + apic.substring(1,apic.length) + "\n </p> \n";	
			}
			
			})       
			$('#zxadArea').html(strHtml);
		});  

 $("#ydb").bind('click',function(){
									if($("#topydul").css("display") =="block"){
											$("#topydul").css("display","none");
											return;
										}
									if($("#topydul").css("display") =="none"){
										//    $("#columns").css("transform","translateZ(5px)");
											$("#topydul").css("display","block");
											return;
										}
									});
 	
 		 var url = location.href.trim(); 
		var titlestr =document.getElementsByTagName('title')[0].text.trim();
		$(".tengxun_wb").attr("href","../../../../../sns.z.qq.com/share@share_url="+url+"&share_title="+titlestr);
		$(".qqkj_title").attr("value",titlestr+url);
		$(".qqkj_url").attr("value",url);
		var timec= Date.parse(new Date());
		$(".sinawbimg").attr("href","../../../../../weibo.cn/ext/share@ru="+url+"&rt="+titlestr+"&st="+timec+"&appkey=2223369352&skipshow=0");
		
		 
    $("#topydul li a ").eq(0).attr("href","../../../../../weibo.cn/ext/share@ru="+url+"&rt="+titlestr+"&st="+timec+"&appkey=2223369352&skipshow=0");
    $("#topydul li a ").eq(1).attr("href","../../../../../sns.z.qq.com/share@share_url="+url+"&share_title="+titlestr);
	*/
       /*添加广告 begin*/
    //$(".myshare").after('   <div class="content_ad_1"> <A HREF="../../../../../finance.chinanews.com/it/z/mind2013/index.shtml" target="_top"> <img src="../../../../../www.chinanews.com/fileftp/2013/05/2013-05-27/qq300-45.gif"> </a> </div>');
     /*添加广告 end*/
});